package com.example.demo.service;

import com.example.demo.entity.BookInfo;
import com.github.pagehelper.PageInfo;


import java.util.List;

public interface BookInfoService {


   public List<BookInfo> selectAll();


   int insertBook(BookInfo bookInfo,String bookDesc);

  //  public List<BookInfo> findBookListByCateId();

   public BookInfo findByBookId(Integer id);

   public List<BookInfo> selectByCatId(Integer id);

   public PageInfo<BookInfo> findByCondition(int cate_id,String keywords,int page,int pageSize,int store_id);

   public PageInfo<BookInfo> findByConditions(int cate_id,String keywords,int page,int pageSize,int store_id);

   public BookInfo findByIdAvailable(int book_id,int buyNum);

   public List<BookInfo> findByStoreId(Integer storeId);

   int updateBookInfo(BookInfo bookInfo,String bookDesc);

   int changeShelfStatus(int bookId,int isShelf);

   int deleteBookInfoByID(int bookId);


}
